package xyz.luxiaoxiang.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author luxx
 * @date 2018/5/18 0018
 */
@Data
@Entity
@Table
public class MainTopic {

    @Id
    @JSONField(name = "main_topic_id")
    @Column(name = "main_topic_id")
    private int mainTopicId;

    @JSONField(name = "main_topic_name")
    @Column(name = "main_topic_name")
    private String mainTopicName;

    public MainTopic(int mainTopicId, String mainTopicName) {
        this.mainTopicId = mainTopicId;
        this.mainTopicName = mainTopicName;
    }

    public MainTopic() {
    }
}
